﻿Module UI
    'link https://sale-app.googlecode.com/svn/trunk
    Public Sub FormatDataGrid(ByRef dgv As DataGridView)
        dgv.AllowUserToAddRows = False
        dgv.AllowUserToDeleteRows = False
        dgv.GridColor = Color.Indigo
        dgv.ReadOnly = True
        dgv.RowHeadersVisible = False
        dgv.AllowUserToResizeRows = False
        dgv.AlternatingRowsDefaultCellStyle.BackColor = Color.Snow
        dgv.CellBorderStyle = DataGridViewCellBorderStyle.None
        dgv.RowTemplate.Height = 27
        dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect
        dgv.BorderStyle = BorderStyle.None
        dgv.DefaultCellStyle.SelectionBackColor = Color.DimGray
        dgv.DefaultCellStyle.SelectionForeColor = Color.White
        dgv.BackgroundColor = Color.White
        'DataGridViewCellStyle.Font = New System.Drawing.Font("Khmer OS System", 8.25!)
        dgv.MultiSelect = False
    End Sub
  
    Public Sub formatForm(ByRef Form As System.Windows.Forms.Form)
        'Form.BackColor = Color.DimGray
        'Form.FormBorderStyle = FormBorderStyle.FixedDialog
    End Sub
End Module
